#! /bin/bash
echo "Starting..."
echo "geting fabric-ca file..."
cd $GOPATH/src/github.com/hyperledger/
git clone https://gitee.com/he_xiaotong/fabric-ca-1.git
mv fabric-ca-1 fabric-ca
cd fabric-ca
echo "checkout version 1.4.2..."
git checkout v1.4.2
echo "geting bin..."
make fabric-ca-server
make fabric-ca-client
export PATH=$PATH:$GOPATH/src/github.com/hyperledger/fabric-ca/bin
echo "generating bin..."
make docker
echo "Finished..."
cd ..
